package io.renren.modules.generator.service;

import com.baomidou.mybatisplus.service.IService;
import io.renren.common.utils.R;
import io.renren.modules.generator.entity.DtAreaEntity;

import java.util.List;
import java.util.Map;

/**
 * 区域字典
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-11-26 15:10:04
 */
public interface DtAreaService extends IService<DtAreaEntity> {

    List<DtAreaEntity> queryPage(Map<String, Object> params);

    int queryPageTotal(Map<String,Object> params);


    List<Map<String,String>> queryOmsMnemonicCode(String code);

    DtAreaEntity queryEntityByOmsMnemonicCode(String code);

    DtAreaEntity queryEntutyByAreaNameAndLevel(String areaName,int level);


    R save(DtAreaEntity dtArea);

    R update(DtAreaEntity dtArea);
}

